<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        // undifined
        // var x;
        // alert(x)
        var str1 = "Hello word"
        var str2 = 'Hello word'
        console.log(str1);
        console.log(str2);
        // var str3 ="hrllo word"
        var str4 = '小明说；"小红很棒漂亮“';
        console.log(str4);
        var str = "Java";
        // js中先运算等号右边的语句
        str = str + "script";/*字符串中+是连接的意思 Javascript*/
        console.log(str);
        
    </script>
</body>
</html>